import 'package:flutterproject/generated/json/base/json_field.dart';
import 'package:flutterproject/generated/json/share_bean.g.dart';
import 'dart:convert';

@JsonSerializable()
class ShareBean {

	String? shareCode;
	String? shareUrl;
  
  ShareBean();

  factory ShareBean.fromJson(Map<String, dynamic> json) => $ShareBeanFromJson(json);

  Map<String, dynamic> toJson() => $ShareBeanToJson(this);

  ShareBean copyWith({String? shareCode, String? shareUrl}) {
      return ShareBean()..shareCode= shareCode ?? this.shareCode
			..shareUrl= shareUrl ?? this.shareUrl;
  }
    
  @override
  String toString() {
    return jsonEncode(this);
  }
}